import axios from '@/utils/axios';

//查询各会议室预定  
export const reservationList = (data) => {
    return axios({
      url: '/conference/room/reservation/list',
      // headers: {'isMork': true},
      // url:'/conference/reservation/reservationList',
      method: 'post',
      data
    })
}
//预定会议室（保存）
export const addReservation = (data) => {
    return axios({
      url: '/conference/room/reservation',
      // headers: {'isMork': true},
      // url:'/conference/reservation/addReservation',
      method: 'post',
      data
    })
}
//提交会议室  
export const putReservation = (data) => {
    return axios({
      url: `/conference/room/reservation/submitRoomReservation`,
      // headers: {'isMork': true},
      // url:'/conference/reservation/addReservation',
      method: 'put',
      data
    })
}
//会议室详情查询
export const getReservation = (rId,type) => {
    return axios({
      // headers: {'isMork': true},
      // url:'/conference/conferenceEmploy/getReservation',
      url: `/conference/room/reservation/${rId}?type=${type}`,
      method: 'get'
    })
}
//修改会议室信息  
export const upReservation = (data) => {
    return axios({
      url: `/conference/room/reservation`,
      // headers: {'isMork': true},
      // url:'/conference/reservation/addReservation',
      method: 'put',
      data
    })
}
//会议提醒间隔  
export const childrenDict = (id) => {
  return axios({
    url: `/base/dict/comboBoxData/${id}`,
    method: 'get'
  })
}
//删除会议
export const delMeeting = (rId) => {
  return axios({
    url: `/conference/room/qry/meeting/del/${rId}`,
    method: 'delete'
  })
}